<!DOCtype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>vue_007_属性绑定</title>
    
</head>
<body>
    <div id="app">
        <!-- 对象的属性绑定 -->
        <a v-bind:href="url">百度1</a>
        <!-- v-bind的简写 可以用: 代替 -->
        <a :href="url">百度2</a>
    </div>

    <script src="js/vue.js"></script>
    <script type="text/javascript">
        var vm = new Vue({
            el:"#app",
            data:{
                url:"http://www.baidu.com"
            },
            methods:{
     
            }
        });
    </script>
</body>

</html></SCRIPT>